//自定义改变state初始值的方法，这里面的参数除了state之外还可以再传额外的参数(变量或对象);

// export const setToken = (state, str) => state.token = str

const mutations = {
    setToken: (state, str) => state.token = str
}

export default mutations